import Vue from 'vue'
import App from './App.vue';
import api from "./api/user"

Vue.prototype.$http = api

// ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// router
// import VueRouter from 'vue-router';
import router from './router';
// Vue.use(VueRouter);

import store from "./store/"

Vue.config.productionTip = false
new Vue({
  store,
  router:router,
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')
